projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c07448
)
(Fcurrent_time_zone): Add alternative for !HAVE_TM_ZONE.
author
Richard M. Stallman
<rms@gnu.org>
Sun, 6 Jun 1993 17:43:12 +0000
(17:43 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sun, 6 Jun 1993 17:43:12 +0000
(17:43 +0000)
src/editfns.c
patch
|
blob
|
history
diff --git
a/src/editfns.c
b/src/editfns.c
index 69a045b83410ecb455f6bf01fd85c60c0596af71..e8b2a08c79f8707ee6740129a4d6968a73714191 100644
(file)
--- a/
src/editfns.c
+++ b/
src/editfns.c
@@
-656,7
+656,12
@@
the data it can't find.")
#ifdef HAVE_TM_ZONE
if (t->tm_zone)
s = t->tm_zone;
+#else /* not HAVE_TM_ZONE */
+#ifdef HAVE_TZNAME
+ if (t->tm_isdst == 0 || t->tm_isdst == 1)
+ s = tzname[t->tm_isdst];
#endif
+#endif /* not HAVE_TM_ZONE */
if (!s)
{
/* No local time zone name is available; use "+-NNNN" instead. */